﻿@using PerpetuumSoft.Knockout

@model TimeProject.WebSite.ViewModels.MessageContainer
@{
    var ko = Html.CreateKnockoutContext();
}

@using (ko.If(x => x.ContainsErrors))
{
    <div class="alert-box error">
        <a class="close" data-dismiss="alert" href="#">x</a>
        <b>ERROR</b><br/>
        @ko.Html.Span(x => x.Text, new { @style = "white-space: pre-line;" })
    </div>
}

@using (ko.If(x => x.ContainsNotifications))
{
    <div class="alert-box notice">
        <a class="close" data-dismiss="alert" href="#">x</a>
        <b>NOTICE</b><br />
        @ko.Html.Span(x => x.Text, new { @style = "white-space: pre-line;" })
    </div>
}

